import 'package:flutter/material.dart';
import 'package:lifechart/page/mine/name.dart';

class Mine extends StatefulWidget {
  const Mine({Key? key}) : super(key: key);

  @override
  State<Mine> createState() => _MineState();
}

class _MineState extends State<Mine> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('个人资料',style: TextStyle(fontSize: 12),),
          leading: IconButton(onPressed: () {
            //页面返回
            Navigator.pop(context);
          },
            icon: Icon(Icons.keyboard_arrow_left_rounded),

          )
      ),
      body: Container(
        child: ListView(
          children: [
            Container(
              margin: EdgeInsets.only(
              ),
              child: ListTile(
                title: Text('昵称',style: TextStyle(
                    fontSize: 12
                ),),
                trailing: Icon(Icons.keyboard_arrow_right),
                onTap: (){
                  Navigator.push(context, MaterialPageRoute(builder: (context) => Name()));
                },

              ),
            ),
            Divider(
              height: 1,
            ),
            Container(
              margin: EdgeInsets.only(
              ),
              child: ListTile(
                title: Text('性别',style: TextStyle(
                    fontSize: 12
                ),),
                trailing: Icon(Icons.keyboard_arrow_right),
                onTap: (){

                },

              ),
            ),
            Divider(
              height: 1,
            ),
            Container(
              margin: EdgeInsets.only(
              ),
              child: ListTile(
                title: Text('公历日期',style: TextStyle(
                    fontSize: 12
                ),),
                trailing: Icon(Icons.keyboard_arrow_right),
                onTap: (){

                },

              ),
            ),
            Divider(
              height: 1,
            ),
            Container(
              margin: EdgeInsets.only(
              ),
              child: ListTile(
                title: Text('出生地区',style: TextStyle(
                    fontSize: 12
                ),),
                trailing: Icon(Icons.keyboard_arrow_right),
                onTap: (){

                },

              ),
            ),


          ],
        ),
      ),

    );
  }
}
